package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.model.Employeeec;
import org.javaboy.vhr.model.Employeetrain;
import org.javaboy.vhr.vo.EmpEcVo;
import org.javaboy.vhr.vo.EmpTrainVo;

import java.util.Date;
import java.util.List;

public interface EmployeetrainMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employeetrain record);

    int insertSelective(Employeetrain record);

    Employeetrain selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employeetrain record);

    int updateByPrimaryKey(Employeetrain record);

    //查询出表中共有多少条记录
    Long getTotal(@Param("emp") Employeetrain train,@Param("beginDateScope") Date[] beginDateScope);

    List<EmpTrainVo> getEmployeeTrainByPage(@Param("page") Integer page, @Param("size") Integer size, @Param("train") Employeetrain employeetrain, @Param("beginDateScope") Date[] beginDateScope);
}